package com.webwork.mood.system.dataobject;

public class Authority {

	/**
	 * 权限
	 */
	private Role role = Role.NOSET;
	
	/**
	 * 菜单代码
	 */
	private String menuCode;

	
	
	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
	
	public void setRole(Integer role) {
		this.role = Role.fromCode(role);
	}

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}


}
